package com.example.project1.activity;

import com.example.project1.R;
import com.example.project1.R.id;
import com.example.project1.R.layout;
import com.example.project1.R.menu;
import com.example.project1.presenter.DataPresenter1;
import com.example.project1.presenter.imple.DataPresenter1Impl;
import com.example.project1.view.View1;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class MainActivity extends Activity implements View1{

	private TextView tv_show;
	private DataPresenter1 presenter;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tv_show=(TextView) findViewById(R.id.tv_show);
        presenter=new DataPresenter1Impl(this);
        getData();
    }


    private void getData() {
    	presenter.presenter1();
	}


	@Override
	public void showView(String str) {
		tv_show.setText(str);
	}
	    
}
